package com.levi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.levi.mapper.PointMapper;
import com.levi.pojo.Point;
import com.levi.service.PointService;
import com.levi.vo.OrderDto;
import com.levi.vo.PointDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * @author shentong
 * @since 2022/6/9 3:51 PM
 */
@Service
public class PointServiceImpl extends ServiceImpl<PointMapper, Point>
implements PointService {
    @Override
    public boolean addPoint(PointDto pointDto) {
        Point point = new Point();
        BeanUtils.copyProperties(pointDto,point);
        this.save(point);
        System.out.println("增加积分成功！！");
        return false;
    }
}
